package com.gxc.service;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

/**
 * 测试定时任务.
 *
 * @author 宫新程
 * @since 2018/12/3 1:38 PM
 */
@Service
public class TaskService {

 // @Scheduled(cron = "0/5 * * * * ?")
  public void task() {
    System.out.println((int) (Math.random() * 100));
  }
}
